package com.boot.project.controller;


import com.boot.project.domain.SignInfoDo;
import com.boot.project.service.SignInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


/** 少儿篮球的controller*/
@RequestMapping("/sign")
@RestController
public class SignInfoController {
    @Autowired
    private SignInfoService signInfoService;

    @PostMapping("/sign")
    public Map<String, Object> sign(@RequestBody SignInfoDo signInfoDo){
        return signInfoService.sign(signInfoDo);
    }

    // 后台管理获取报名信息
    @GetMapping("/signedInfo")
    public Map<String, Object> signedInfo(@RequestParam Integer pageNum,Integer pageSize,Integer signType){
        return signInfoService.signedInfo(pageNum, pageSize, signType);
    }
}
